package com.liuugoqing.creator.prototype.deepclone;

import java.io.Serializable;

/**
 * @Author : liugq
 * @Date : 2022/7/1 21:55
 * @See : 参考类
 * @Since： JDK1.8
 * @Version : 1.0
 */
public class Citation implements Cloneable, Serializable {
    private Student stu;

    public Student getStu() {
        return stu;
    }

    public void setStu(Student stu) {
        this.stu = stu;
    }
    public void show() {
        System.out.println(stu.getName() + "同学：在2020学年第一学期中表现优秀，被评为三好学生。特发此状！");
    }

    @Override
    public Citation clone() throws CloneNotSupportedException {
        return (Citation)super.clone();
    }
}
